package cn.aitrox.ry.service.auth.service;

import cn.aitrox.ry.bean.CommonPageInfo;
import cn.aitrox.ry.bean.RespResult;
import cn.aitrox.ry.service.auth.dto.role.in.AuthRoleCreateInDto;
import cn.aitrox.ry.service.auth.dto.role.in.AuthRoleSearchInDto;
import cn.aitrox.ry.service.auth.dto.role.in.AuthRoleUpdateInDto;
import cn.aitrox.ry.service.auth.dto.role.out.AuthRoleDetailDto;

import java.util.List;

public interface AuthRoleService {
    RespResult delete(Integer id);

    RespResult<AuthRoleDetailDto> read(Integer id);

    RespResult update(AuthRoleUpdateInDto input);

    RespResult<Integer> create(AuthRoleCreateInDto input);

    RespResult validRoleExist(List<Integer> roleIds);

    CommonPageInfo<AuthRoleDetailDto> search(AuthRoleSearchInDto input);
}
